package com.zx.framework.plat.role.po;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
 * RoleQuick entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="s_role_quick")

public class RoleQuick  implements java.io.Serializable {


    // Fields    

     private RoleQuickId id;
     private String layer;


    // Constructors

    /** default constructor */
    public RoleQuick() {
    }

    
    /** full constructor */
    public RoleQuick(RoleQuickId id, String layer) {
        this.id = id;
        this.layer = layer;
    }

   
    // Property accessors
    @EmbeddedId
    
    @AttributeOverrides( {
        @AttributeOverride(name="roleid", column=@Column(name="ROLEID", nullable=false, length=64) ), 
        @AttributeOverride(name="moduleid", column=@Column(name="MODULEID", nullable=false, length=64) ) } )

    public RoleQuickId getId() {
        return this.id;
    }
    
    public void setId(RoleQuickId id) {
        this.id = id;
    }
    
    @Column(name="LAYER", nullable=false, length=64)

    public String getLayer() {
        return this.layer;
    }
    
    public void setLayer(String layer) {
        this.layer = layer;
    }
   








}